namespace FastDevTemplate.Api.Attribute;

public class PermissionVerificationAttribute : System.Attribute
{
    public PermissionVerificationAttribute(string id = "", string describe = "", string client = "" , bool useWhitelist = false)
    {
        ID = id;
        Describe = describe;
        UseWhitelist = useWhitelist;
        if (String.IsNullOrEmpty(client))
            client = ID.Split('/')[0];
        Client = client;
    }

    public string ID { get; set; }

    public string Describe { get; set; }

    public bool UseWhitelist { get; set; }
    
    public string Client { get; set; }
    
}